﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SWE 632 NetBooks</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("NetBooks", "Index", "Home", null, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                @if (Request.IsAuthenticated)
                {<ul class="nav navbar-nav">

                    <li>@Html.ActionLink("My Books", "Index", "BookList", null, null)</li>
                    <li>@Html.ActionLink("By Title", "Index", "Book", new { indexBy = "Title" }, null)</li>
                    <li>@Html.ActionLink("By Author", "Index", "Book", new { indexBy = "Author" }, null)</li>
                    <li>@Html.ActionLink("By Genre", "Index", "Book", new { indexBy = "Genre" }, null)</li>
                    <li>
                        @using (Html.BeginForm("Search", "Book"))
                        {
                            <input type="text" name="searchTerm" />
                            <input type="submit" value="Search" />
                        }
                    </li>
                    <li>@Html.ActionLink("Add Book", "Create", "Book")</li>

                </ul>}
                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>&copy; @DateTime.Now.Year - Brad Campbell - SWE 632 - Final Project</p>
        </footer>
    </div>


    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", false)
</body>
</html>
